//package com.touchfired.common.event.handler.impl;
//
//import com.touchfired.common.constants.ClientInfo;
//import com.touchfired.common.constants.EventCode;
//import com.touchfired.common.context.ServerContext;
//import com.touchfired.common.message.BaseMessage;
//import com.touchfired.common.message.transfer.MessageConsoler;
//import io.netty.channel.Channel;
//import io.netty.channel.ChannelHandlerContext;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * @Description 连接断开事件码处理器
// * @Author 幸佳俊
// */
//@Component
//public class EventCodeConnectedDisHandler extends BaseEventCodeHandler {
//
//    @Autowired
//    private ServerContext serverContext;
//
//    public EventCodeConnectedDisHandler() {
//        super(EventCode.CLIENT_CONNECTED_DIS);
//    }
//
//    @Override
//    public EventCodeHandler doHandle(ChannelHandlerContext ctx, ClientInfo clientInfo, BaseMessage message) throws Exception {
//        Channel channel = ctx.channel();
//        serverContext.removeClientInfo(channel);
//        MessageConsoler.info(channel.remoteAddress().toString() + "断开连接");
//        return null;
//    }
//}
